-- GENERATED SPELL FOR [Whirlwind Stormwalker] --


function spell0_11577(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(11824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11577', 0, 1)
end

function Sorts_11577(pUnit, Event)
local choix_sorts_11577 = math.random(0, 0)
if choix_sorts_11577 == 0 then
pUnit:RegisterEvent('spell0_11577', 1, 1)
end
end

function mob11577_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11577', math.random(1500, 3000), 1)
end

function mob11577_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11577_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11577_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11577, 1, 'mob11577_Action')
RegisterUnitEvent(11577, 2, 'mob11577_Leave')
RegisterUnitEvent(11577, 3, 'mob11577_Kill')
RegisterUnitEvent(11577, 4, 'mob11577_Die')
